package com.bw.z.network;


import com.bw.z.mvp.model.entity.BaseEntity;

import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Function;

/**
 *  针对网络请求中RXjava异步任务调度时子类向基类转型都饿工具类
 */
public class ChangeFunction<T extends BaseEntity> implements Function<T, BaseEntity> {


    @Override
    public BaseEntity apply(@NonNull T t) throws Exception {
        return t;
    }
}
